Repository navigation
fix(workflow): closed appendix example with its own pointer stays exempt (#422) - #423
Conversation
…s own pointer (#422) PR #419's pointer recovery dropped the trailing fence whenever the recovered prose surfaced a Concept Document pointer the kept prose lacked as a set member. A properly closed appendix example that itself depicts a draft carries a distinct pointer line, so the signal fired on exactly the #410 shape and link-checked the closed example's pointer as draft prose. Narrow the signal: drop the fence on the pointer signal only when the kept prose carries no Concept Document pointer at all. The #414 trapped-pointer shape (the draft's only pointer trapped) still recovers; a draft already carrying a pointer keeps its appendix example exempt. The residual limitation — a second pointer trapped in a draft already carrying one — is recorded in the comment. Tests: two regression tests mirroring the #410 shape with a distinct example pointer (valid draft passes, broken own pointer still fails); the passes-when-valid test fails pre-fix. Suite 54/54; real-tree check ok:true.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #422
Problem
PR #419's pointer recovery in
issue_drafts()dropped the trailing fence wheneverconcept_pointers(recovered) - concept_pointers(kept)was non-empty. A properly closed appendix example (#410 shape) that itself depicts a draft carries its own distinct- Concept Document:pointer line, so the signal fired on exactly that shape: the closed example lost its exemption and its example pointer was link-checked as draft prose, failing a valid draft. Reproduced on main5a2cc593: example with a distinct pointer yielded targets['C001-source-preservation.md', 'missing/example-pointer.md']instead of just the draft's own.Solution
Narrow the pointer signal to the shape it was meant for: drop the fence only when the kept prose carries no Concept Document pointer at all and the recovered prose surfaces one. The #414 trapped-pointer draft (its only pointer trapped inside an unclosed example) still recovers; a draft already carrying a pointer in kept prose keeps its closed appendix example exempt. The residual limitation — a second pointer trapped in a draft already carrying one is indistinguishable from a closed example's own pointer — is recorded in the
issue_drafts()comment, alongside the existing #414 limitation.Verification
research_workflow.py, passes post-fix; the fix(workflow): #411 marker test misses trapped draft prose when the marker sits before an unclosed inner example #414 tests pass both ways as before.test_research_workflow.pysuite: 54/54.python3 scripts/research_workflow.py check --repo-root .on the real tree:ok: true.ruff format --checkclean on both changed files.Single-repo:
research_workflow.pyexists only in developing-today/code (per the issue's cross-repo check).Need help on this PR? Tag
@codesmith-botwith what you need.